package com.ycm.controller;

import com.ycm.core.Result;
import com.ycm.vo.menu.MenuVo;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ycm
 * @date 2024-11-15
 */
@RestController
@RequestMapping("/api/v1/menus")
@Api(tags = "菜单管理")
public class MenuController {
    @GetMapping("/routes")
    @Operation(summary = "菜单列表")
    public Result<List<MenuVo>> routes() {
        return Result.success(MenuVo._default());
    }
}
